<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<link type="text/css" id="styleName" rel="stylesheet" href="{TPL}css/blue/color.css"/ >    

<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/wdggcGobal.js"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/changeEmail.css">

<link type="text/css" rel="stylesheet" href="{TPL}css/OrderCart.css">

    <style type="text/css">
    #ad20100727{z-index:100;display:none;moz-opacity:0.56;opacity: 0.56; filter:alpha(opacity=56); height:40px;background:#fff url({TPL}images/footlayer.jpg) repeat-x 0 0;position:fixed;_position:absolute;bottom:0;border-top:#5BB6D0 solid 2px;left:0;right:0;width:100%;}
.gg_close{width:15px;right:10px;margin:5px 0 -100px 0;background:url({TPL}images/1000912.gif) no-repeat center 2px;height:15px;position:absolute;z-index:100;}
.gg_img{float:left;position:fixed;_position:absolute;bottom:0;background:;z-index:8;width:950px;height:40px;cursor:pointer;}
.gg_img span{height:40px;width:950px;display:block;}
.zd_hf{position:fixed;_position:absolute;margin-left:-475px;left:50%;height:40px;width:950px;bottom:0;z-index:110;display:none;}
    </style><title>添加代运{$cfg_site_name}</title></head>

<body>

{template 'header'}
    
    
    <div class="admin">
        <div class="ding">
            <div class="shouye">
                <a title="我的会员中心" href="{url_m.php}"></a>
            </div>
            <div class="lb">
                <div class="weizhi">
                    <form action="m.php?name=express_detail_list&action=conform&eid={$id}" method="post">
                      <b>{lang Location}：</b><a href="{url_m.php}">{lang Member_Center}</a><span>&gt;</span>添加代运
                      <input type="hidden" value="{$id}" name="eid">
                      {if $order_info['order_status'] < 7}
		        <input type="submit"  value="确认订单" name="commit" style="width:300px;color:red;">
                        {/if}

                    </form>
                  </div>
                
                <div class="shezhi">
                    <p>
                        <a href="{url_m.php}">{lang My_Member_Center}</a><span>|</span>{lang Setting_style}：</p>
                    <ul>
                        <li onClick="changeStyle('orange')" class="mypanliS1"></li>
                        <li onClick="changeStyle('grey')" class="mypanliS2"></li>
                        <li onClick="changeStyle('blue')" class="mypanliS3"></li>
                    </ul>
                </div>
            </div>
        </div>

{template 'member_left'}  

    

<form id="add_detail" action="m.php?name=express_detail_add&action=save" method="post" name="aspnetForm">


    <div class="fill">
			<div class="buzhou" style="display:none">
				<img alt="修改E-mail第一步" src="{TPL}images/e_1.gif">
				<script type="text/javascript">
				    function CheckForm() {
				        var flag = false;
				        if ($.trim($("#express_number").val()).length < 1) {
				            $("#express_number").attr("class", "red").next("p").html("请您输入收件人").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#title").val()).length < 1) {
				            $("#title").attr("class", "red").next("p").html("您重复输入联系电话").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#amount").val()).length < 1) {
				            $("#amount").attr("class", "red").next("p").html("请您输入城市").attr("class", "red");
				            flag = false;
				        return flag;
				        }
				        if ($.trim($("#declare_price").val()).length < 1) {
				            $("#declare_price").attr("class", "red").next("p").html("请您输入邮编").attr("class", "red");
				            flag = false;
				        return flag;
				        }
                                        return true;
				    }
				    function SubmitForm() {
				        if (CheckForm()) {
				          $("#add_detail").submit();
				        }
				    }
				</script>

			</div>
<div class="biao">
                {if $order_info['order_status'] < 7 }
				<table>
				  <tbody><tr>
					<td class="z">用户名：</td>
					<td>{$value['uname']}</td>
                                        <input type="hidden" value="{$value['uname']}" id="uname" name="uname">
                                        <input type="hidden" value="{$id}" id="eid" name="eid">
				  </tr>
				  <tr>
					<td class="z">快递列表：</td>
                                        <td>
                                          <select name="express_type" id="express_type" class="select200">
                                            <option {if $express_detail_item['express_type'] == ""} selected {/if}value="">选择快递公司</option>
                                            <option {if $express_detail_item['express_type'] == "申通"} selected {/if} value="申通">申通</option>
                                            <option {if $express_detail_item['express_type'] == "圆通"} selected {/if} value="圆通">圆通</option>
                                            <option {if $express_detail_item['express_type'] == "中通"} selected {/if} value="中通">中通</option>
                                            <option {if $express_detail_item['express_type'] == "天天"} selected {/if} value="天天">天天</option>
                                            <option {if $express_detail_item['express_type'] == "韵达"} selected {/if} value="韵达">韵达</option>
                                            <option {if $express_detail_item['express_type'] == "顺丰"} selected {/if} value="顺丰">顺丰</option>
                                            <option {if $express_detail_item['express_type'] == "EMS"} selected {/if}  value="EMS">EMS</option>
                                            <option {if $express_detail_item['express_type'] == "汇通"} selected {/if} value="汇通">汇通</option>
                                            <option {if $express_detail_item['express_type'] == "其他"} selected {/if} value="其他">其他</mption>
                                          </select>
					</td>
				  </tr>
				  <tr>
					<td class="z">快递单号：</td>
					<td>
                                          <input type="text" value="{$express_detail_item['express_number']}"  maxlength="80" id="express_number" name="express_number" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">物品名称：</td>
					<td>
                                          <input type="text" value="{$express_detail_item['title']}"  maxlength="80" id="title" name="title" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">物品数量：</td>
					<td>
                                          <input type="text" value="{$express_detail_item['amount']}"  maxlength="80" id="amount" name="amount" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">申报价值(USD)：</td>
					<td>
                                          <input type="text" value="{$express_detail_item['declare_price']}"  maxlength="80" id="declare_price" name="declare_price" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">特殊备注：</td>
					<td>
                                          <input type="text" value="{$express_detail_item['remark']}"  maxlength="80" id="remark" name="remark" class="">
						<p style=""></p>
					</td>
				  </tr>
				  <tr>
					<td class="z">特别服务：</td>
                                        <td>
                                          {if isset($express_detail_item['edid'])}
                                          <input name="edid" value="{$express_detail_item['edid']}" type="hidden"/>
                                          {/if}
                                          <input style="width:15px;float:none;" {if preg_match("/.*?(拍照\s\[提供物品照片\]).*?/",$express_detail_item['special_service'],$tmp_array)}checked {/if}   name="goods_services1" type="checkbox" value="拍照 [提供物品照片]"> 拍照 [提供物品照片]<br>
                                          <input style="width:15px;float:none;" {if preg_match("/.*?(验货\s\[测试产品\]).*?/",$express_detail_item['special_service'],$tmp_array)}checked {/if}  name="goods_services2" type="checkbox" value="验货 [测试产品]"> 验货 [测试产品]<br>
                                          <input style="width:15px;float:none;" {if preg_match("/.*?(点货\s\[点算件数\]).*?/",$express_detail_item['special_service'],$tmp_array)}checked {/if}  name="goods_services3" type="checkbox" value="点货 [点算件数]"> 点货 [点算件数]<br>
                                          <input style="width:15px;float:none;" {if preg_match("/.*?(重新整合包装\s\[减低抛重机率\]).*?/",$express_detail_item['special_service'],$tmp_array)}checked {/if}  name="goods_services4" type="checkbox" value="重新整合包装 [减低抛重机率]"> 重新整合包装 [减低抛重机率]</td>
				  </tr>
                                  <tr>
                                    <td>
			<div class="tijiao"><input type="button" onClick="SubmitForm()" onMouseOut="this.className=''" onMouseOver="this.className='by'" value="添加包裹" name="commit" class=""></div>
                        </td> 
                                  </tr>
				</tbody></table>
                                {else}
				<table>
				  <tbody><tr>
					<td class="z">用户名：</td>
					<td>{$value['uname']}</td>
				  </tr>
				  <tr>
					<td class="z">国际运单号：</td>
					<td>
                                           {$order_info['international_express_number']}
					</td>
				  </tr>
				  <tr>
					<td class="z">重量：</td>
					<td>
                                           {$order_info['weight']}
					</td>
				  </tr>
				  <tr>
					<td class="z">收件人：</td>
					<td>
                                           {$order_info['addressee']}
					</td>
				  </tr>
				  <tr>
					<td class="z">联系电话：</td>
					<td>
                                           {$order_info['phone']}
					</td>
				  </tr>
				  <tr>
					<td class="z">详细地址：</td>
					<td>
                                           {$order_info['address']}
					</td>
				  </tr>
				  <tr>
					<td class="z">备注：</td>
                                        <td>
                                           {$order_info['remark']}
                                        </td>
				  </tr>
				</tbody></table>
                                {/if}
			</div>
                        <br/>
                        <br/>
                        <br/>
      <div id="vPanel0" class="vPanel">
        <table width="100%" border="0" cellspacing="0" cellpadding="1">
          <tr>
            <td width="54" height="30" align="center" class="liebiao_top liebiao_bg">编号</td>
            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">快递单号</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">快递公司</td>
            <td width="109" height="30" align="center" class="liebiao_top liebiao_bg">物品名称</td>
            <td width="111" height="30" align="center" class="liebiao_top liebiao_bg">数量</td>
            <td width="123" height="30" align="center" class="liebiao_top liebiao_bg">申报价值<font color="red">(USD)</font></td>
            <td width="193" height="30" align="center" class="liebiao_top liebiao_bg">状态</td>
            {if $order_info['order_status'] < 7 }            <td width="100" height="30" align="center" class="liebiao_top liebiao_bg">{lang Operation}</td>{/if}
          </tr>
          
	{loop $dataarray $r}
          <tr class="0deltr_{$r['eid']}">
            <td width="109" height="60" align="center" class="w4"><font color="red">{$r['edid']}</font></td>
            <td width="111" height="60" align="center" class="w5">{$r['express_number']}</td>
            <td width="123" height="60" align="center" class="w6">{$r['express_type']}</td>
            <td width="123" height="60" align="center" class="w6">{$r['title']}</td>
            <td width="123" height="60" align="center" class="w6">{$r['amount']}</td>
            <td width="123" height="60" align="center" class="w6">{$r['declare_price']}</td>
            <td width="193" height="60" align="center">{$r['express_detail_info']}</td>
            {if $order_info['order_status'] < 7}
            <td width="100"><a href="{url_m.php?name=express_detail_list&id=$id&edid=$r['edid']}">编辑</a>/<a href="m.php?name=express_detail_add&action=del&edid={$r['edid']}">作废</a></td>
            {/if}
          </tr>
	{/loop}
		<tr><td colspan="8">
		<div class="orderInfo" id="orderInfo" style="border:#ddd 1px dashed;line-height:30px;margin-bottom:25px;height:30px;background:url(../iamges/tixing.gif) #fdfde1 no-repeat 8px 7px;padding-left:25px"> </div>
		</td></tr>
          <tr>
            <td height="30" colspan="8" valign="middle" class="hg_50"><span class="liebiao_xia_font1">{lang select}：</span> <span class="liebiao_xia_font2">
			<a href="javascript:;" onclick="CheckAll(true)">{lang qselect}</a>
			<a href="javascript:;" onclick="FCheck()">{lang fselect}</a>
			</span>
          </tr>
        </table>		

      </div>
		</div>



        <div class="yj">
        </div>
    </div>
    </form>
{template 'footer'}


</body>
</html>
